
import { Column, Table } from 'sequelize-typescript';
import { BaseModel } from '@/model'
import { DataTypes } from "sequelize";

@Table
export class Param extends BaseModel {
  @Column({ type: DataTypes.STRING, allowNull: false, comment: 'Id' })
  publicId: string;

  @Column({ type: DataTypes.STRING, allowNull: false, comment: "Key" })
  publicKey: string;

  @Column({ type: DataTypes.STRING, allowNull: false, comment: "名称" })
  publicName: string;

  @Column({ type: DataTypes.INTEGER, defaultValue: 0, comment: "类型" })
  publicType: number;

  @Column({ type: DataTypes.STRING, comment: "值" })
  publicValue: string;

  @Column({ type: DataTypes.STRING, defaultValue: "0", comment: "状态" })
  status: string;

  @Column({ type: DataTypes.STRING, comment: "说明" })
  summary: string;

  @Column({ type: DataTypes.STRING, defaultValue: "0", comment: "分组" })
  systemFlag: string;

  @Column({ type: DataTypes.STRING, comment: "部门类型" })
  validateCode: string;

  @Column({ type: DataTypes.STRING, comment: "创建人" })
  crateBy: string;

  @Column({ type: DataTypes.STRING, comment: "更新人" })
  updateBy: string;

  @Column({ type: DataTypes.STRING, defaultValue: "0", comment: "软删除" })
  delFlag: string;

}
